<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Lightweight OS (LWOS): _task Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Lightweight OS (LWOS)
   
   </div>
   <div id="projectbrief">A diminutive operating system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">_task Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="_task" -->
<p>Each row of the <em>task_table</em> contains data about the task.  
 <a href="struct__task.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="lwos_8h_source.html">lwos.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="lwos_8h.html#a724f9ce2351c125b3b7f6c7923822bce">TaskState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#ae9205de88fa04e3d1647b531510c5850">state</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Task's run state.  <a href="#ae9205de88fa04e3d1647b531510c5850"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#a117951ab1cd1935d3bfe805dcaf5cd7c">taskfunc</a> )(struct <a class="el" href="struct__task.html">_task</a> *tcb)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Task's function.  <a href="#a117951ab1cd1935d3bfe805dcaf5cd7c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#a4d013bae5c755de564a24eab1d4f412b">taskdata</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to task local storage (see <em>task_alloc</em>)  <a href="#a4d013bae5c755de564a24eab1d4f412b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">TASKWAIT_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#ad5da6557d0c1af58ee967fee5cf48614">wait</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If waiting for a semaphore, point to it.  <a href="#ad5da6557d0c1af58ee967fee5cf48614"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#a9089f005616ac7d832860662e7c49c0a">wake</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If waiting for a tick count, here it is.  <a href="#a9089f005616ac7d832860662e7c49c0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">jmp_buf&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__task.html#a321c3ad2c00ebe17432b31e48f358823">yieldbuf</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If <em>TASK_NO_SETJMP</em> is not defined use setjmp for embedded yield.  <a href="#a321c3ad2c00ebe17432b31e48f358823"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Each row of the <em>task_table</em> contains data about the task. </p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="ae9205de88fa04e3d1647b531510c5850"></a><!-- doxytag: member="_task::state" ref="ae9205de88fa04e3d1647b531510c5850" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="lwos_8h.html#a724f9ce2351c125b3b7f6c7923822bce">TaskState</a> <a class="el" href="struct__task.html#ae9205de88fa04e3d1647b531510c5850">_task::state</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Task's run state. </p>

</div>
</div>
<a class="anchor" id="a4d013bae5c755de564a24eab1d4f412b"></a><!-- doxytag: member="_task::taskdata" ref="a4d013bae5c755de564a24eab1d4f412b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* <a class="el" href="struct__task.html#a4d013bae5c755de564a24eab1d4f412b">_task::taskdata</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pointer to task local storage (see <em>task_alloc</em>) </p>

</div>
</div>
<a class="anchor" id="a117951ab1cd1935d3bfe805dcaf5cd7c"></a><!-- doxytag: member="_task::taskfunc" ref="a117951ab1cd1935d3bfe805dcaf5cd7c" args=")(struct _task *tcb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* <a class="el" href="struct__task.html#a117951ab1cd1935d3bfe805dcaf5cd7c">_task::taskfunc</a>)(struct <a class="el" href="struct__task.html">_task</a> *tcb)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Task's function. </p>

</div>
</div>
<a class="anchor" id="ad5da6557d0c1af58ee967fee5cf48614"></a><!-- doxytag: member="_task::wait" ref="ad5da6557d0c1af58ee967fee5cf48614" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TASKWAIT_t* <a class="el" href="struct__task.html#ad5da6557d0c1af58ee967fee5cf48614">_task::wait</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If waiting for a semaphore, point to it. </p>

</div>
</div>
<a class="anchor" id="a9089f005616ac7d832860662e7c49c0a"></a><!-- doxytag: member="_task::wake" ref="a9089f005616ac7d832860662e7c49c0a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned <a class="el" href="struct__task.html#a9089f005616ac7d832860662e7c49c0a">_task::wake</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If waiting for a tick count, here it is. </p>

</div>
</div>
<a class="anchor" id="a321c3ad2c00ebe17432b31e48f358823"></a><!-- doxytag: member="_task::yieldbuf" ref="a321c3ad2c00ebe17432b31e48f358823" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">jmp_buf <a class="el" href="struct__task.html#a321c3ad2c00ebe17432b31e48f358823">_task::yieldbuf</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If <em>TASK_NO_SETJMP</em> is not defined use setjmp for embedded yield. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="lwos_8h_source.html">lwos.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 19 2012 22:30:11 for Lightweight OS (LWOS) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
